package com.example.myapplication.main;

import androidx.lifecycle.MutableLiveData;

import com.example.myapplication.baseMVVM.BaseViewModel;
import com.example.myapplication.entiy.VideoEntity;

public class MainViewModel extends BaseViewModel<MianRepo> {
    @Override
    protected MianRepo createRepo() {
        return new MianRepo();
    }

    public MutableLiveData<VideoEntity> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void video(int page,int size){
        repo.video(page,size,success,fail);
    }
}
